package com.guo.todo.usercenter.service.credential;

import com.guo.todo.common.credential.Credential;
import com.guo.todo.common.excepiton.CommonException;

/**
 * @Auther: hotlove_linx
 * @Date: 2023/7/19 22:27
 * @Description:
 */
public interface CredentialService {

    /**
     * 登录用户
     * @param profileName
     * @param password
     * @return
     */
    Credential loginProfile(String profileName, String password, int terminal) throws CommonException;

    /**
     * 验证用户信息
     * @param token
     * @param terminal
     * @throws CommonException
     */
    void validSession(String token, int terminal) throws CommonException;
}
